// 高德地图
export const gaode = (params) => {
	return `https://uri.amap.com/navigation?from=${params.start.longitude},${params.start.latitude},${params.start.name}&to=${params.destination.longitude},${params.destination.latitude},${params.destination.name}&callnative=1`
}

// 腾讯地图
export const tengxun = (params) => {
	return `https://apis.map.qq.com/uri/v1/routeplan?type=bus&from=${params.start.name}&fromcoord=${params.start.longitude},${params.start.latitude}&to=${params.destination.name}&tocoord=${params.destination.longitude},${params.destination.latitude}&policy=1&referer=AZABZ-UFQAJ-C4YF2-KE2IY-WOU42-3VBOQ`
}

// 百度地图
export const baidu = (params) => {
  return `https://api.map.baidu.com/marker?location=${params.destination.latitude},${params.destination.longitude}&title=${params.start.name}&content=${params.destination.name}&output=html&src=webapp.baidu.openAPIdemo `
}
